﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace XSTDZ.ERP.Application.DataContracts
{
    /// <summary>
    /// 客户DTO  2013/08/07 10:33 by chenqiao
    /// </summary>
    [Serializable]
    public class ClientInfoDto
    {
        public Guid? Id { get; set; }
        [Display(Name = "客户名称：")]
        [Required(ErrorMessage = "{0}不能为空!")]
        public string ClientName { get; set; }
        [Display(Name = "客户编码：")]
        //[Required(ErrorMessage = "{0}不能为空!")]
        public string ClientCode { get; set; }
        [Display(Name = "客户简称：")]
        //[Required(ErrorMessage = "{0}不能为空!")]
        public string ShortName { get; set; }
         [Display(Name = "省级名称：")]
        public int ProvincialID { get; set; }
         [Display(Name = "市级名称：")]
        public int CityID { get; set; }
        [Display(Name = "客户地址：")]
        public string ClientAddress { get; set; }
        [Display(Name = "邮编：")]
        public string PostCode { get; set; }
        [Display(Name = "网址：")]
        public string Http { get; set; }
        [Display(Name = "电话：")]
        //[Required(ErrorMessage = "{0}不能为空!")]
        public string ClientPhone { get; set; }
        [Display(Name = "传真：")]
        public string ClientFax { get; set; }
        [Display(Name = "电子邮件：")]
        public string Email { get; set; }
        [Display(Name = "开户行：")]
        public string BankName { get; set; }
        [Display(Name = "银行账号：")]
        public string AccountNnmber { get; set; }
        [Display(Name = "描述：")]
        public string Describe { get; set; }
        [Display(Name = "企业性质")]
        public int ClientProperty { get; set; }//企业性质  码表
        [Display(Name = "负责部门：")]
        [Required(ErrorMessage = "{0}不能为空!")]
        public System.Guid ResponsibleDeptID { get; set; }
        public string ResponsibleDeptName { get; set; }//负责部门

        [Display(Name = "负责人：")]
        [Required(ErrorMessage = "{0}不能为空!")]
        public System.Guid ResponsiblePersonID { get; set; }
        public string ResponsiblePersonName { get; set; }///负责人

        [Display(Name = "状态：")]
        public int Deleted { get; set; }
        public System.Guid CreateID { get; set; }
        public System.DateTime CreateTime { get; set; }
        public Nullable<System.Guid> UpdateID { get; set; }
        public Nullable<System.DateTime> UpdateDate { get; set; }
        [Display(Name = "备注：")]
        public string Remarks { get; set; }

        public Guid OrgID { get; set; }//所属组织机构ID
        public Guid OrgName { get; set; }//所属组织机构

        public string CityName { get; set; }
        public string ProvinceName { get; set; }
        public string DeleteState { get; set; }
    }
}
